<?php

namespace tmcore\services\upload;

use tmcore\base\BaseDriver;
use tmcore\services\ConfigService;
use tmcore\services\upload\driver\Local;
use tmcore\services\upload\driver\Aliyun;
use tmcore\services\upload\driver\Qcloud;
use tmcore\services\upload\driver\Qiniu;

/**
 * Class Upload
 * @package tmcore\services\upload
 * @mixin Local
 * @mixin Aliyun
 * @mixin Qcloud
 * @mixin Qiniu
 */
class Upload extends BaseDriver
{
    /**
     * 空间名
     * @var string
     */
    protected string $namespace = '\\tmcore\\services\\upload\\driver\\';

    /**
     * 默认驱动
     * @return mixed
     */
    protected function getDefaultDriver()
    {
        return (new ConfigService)->getConfig( 'default','upload');
    }

}